<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新函数</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration72.new-features.html">« 新特性</a></li>
      <li style="float: right;"><a href="migration72.constants.html">新全局常量 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration72.html">从 PHP 7.1.x 移植到 PHP 7.2.x</a></li>
    <li>新函数</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration72.new-functions" class="sect1">
 <h2 class="title">新函数</h2>

 <div class="sect2" id="migration72.new-functions.core">
  <h3 class="title">PHP 内核</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.stream-isatty.html" class="function">stream_isatty()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sapi-windows-vt100-support.html" class="function">sapi_windows_vt100_support()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.spl">
  <h3 class="title"><a href="book.spl.html" class="link">SPL</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.spl-object-id.html" class="function">spl_object_id()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.dom">
  <h3 class="title"><a href="book.dom.html" class="link">DOM</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="domnodelist.count.html" class="methodname">DomNodeList::count()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="domnamednodemap.count.html" class="methodname">DOMNamedNodeMap::count()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.ftp">
  <h3 class="title"><a href="book.ftp.html" class="link">FTP</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ftp-append.html" class="function">ftp_append()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.image">
  <h3 class="title"><a href="book.image.html" class="link">GD</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imagesetclip.html" class="function">imagesetclip()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imagegetclip.html" class="function">imagegetclip()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imageopenpolygon.html" class="function">imageopenpolygon()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imageresolution.html" class="function">imageresolution()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imagecreatefrombmp.html" class="function">imagecreatefrombmp()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imagebmp.html" class="function">imagebmp()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.hash">
  <h3 class="title"><a href="book.hash.html" class="link">Hash</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.hash-hmac-algos.html" class="function">hash_hmac_algos()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.ldap">
  <h3 class="title"><a href="book.ldap.html" class="link">LDAP</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ldap-parse-exop.html" class="function">ldap_parse_exop()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ldap-exop.html" class="function">ldap_exop()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ldap-exop-passwd.html" class="function">ldap_exop_passwd()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.ldap-exop-whoami.html" class="function">ldap_exop_whoami()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.mbstring">
  <h3 class="title"><a href="book.mbstring.html" class="link">Multibyte String</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mb-chr.html" class="function">mb_chr()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mb-ord.html" class="function">mb_ord()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mb-scrub.html" class="function">mb_scrub()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.oci8">
  <h3 class="title"><a href="book.oci8.html" class="link">Oracle OCI8</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.oci-register-taf-callback.html" class="function">oci_register_taf_callback()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.oci-unregister-taf-callback.html" class="function">oci_unregister_taf_callback()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.sockets">
  <h3 class="title"><a href="book.sockets.html" class="link">Sockets</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.socket-addrinfo-lookup.html" class="function">socket_addrinfo_lookup()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.socket-addrinfo-connect.html" class="function">socket_addrinfo_connect()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.socket-addrinfo-bind.html" class="function">socket_addrinfo_bind()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.socket-addrinfo-explain.html" class="function">socket_addrinfo_explain()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.sodium">
  <h3 class="title"><a href="book.sodium.html" class="link">Sodium</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-add.html" class="function">sodium_add()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-bin2hex.html" class="function">sodium_bin2hex()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-compare.html" class="function">sodium_compare()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-aes256gcm-decrypt.html" class="function">sodium_crypto_aead_aes256gcm_decrypt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-aes256gcm-encrypt.html" class="function">sodium_crypto_aead_aes256gcm_encrypt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-aes256gcm-is-available.html" class="function">sodium_crypto_aead_aes256gcm_is_available()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-aes256gcm-keygen.html" class="function">sodium_crypto_aead_aes256gcm_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-chacha20poly1305-decrypt.html" class="function">sodium_crypto_aead_chacha20poly1305_decrypt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-chacha20poly1305-encrypt.html" class="function">sodium_crypto_aead_chacha20poly1305_encrypt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-decrypt.html" class="function">sodium_crypto_aead_chacha20poly1305_ietf_decrypt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-encrypt.html" class="function">sodium_crypto_aead_chacha20poly1305_ietf_encrypt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-keygen.html" class="function">sodium_crypto_aead_chacha20poly1305_ietf_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-aead-chacha20poly1305-keygen.html" class="function">sodium_crypto_aead_chacha20poly1305_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-auth-keygen.html" class="function">sodium_crypto_auth_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-auth-verify.html" class="function">sodium_crypto_auth_verify()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-auth.html" class="function">sodium_crypto_auth()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-keypair-from-secretkey-and-publickey.html" class="function">sodium_crypto_box_keypair_from_secretkey_and_publickey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-keypair.html" class="function">sodium_crypto_box_keypair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-open.html" class="function">sodium_crypto_box_open()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-publickey-from-secretkey.html" class="function">sodium_crypto_box_publickey_from_secretkey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-publickey.html" class="function">sodium_crypto_box_publickey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-seal-open.html" class="function">sodium_crypto_box_seal_open()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-seal.html" class="function">sodium_crypto_box_seal()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-secretkey.html" class="function">sodium_crypto_box_secretkey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box-seed-keypair.html" class="function">sodium_crypto_box_seed_keypair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-box.html" class="function">sodium_crypto_box()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-generichash-final.html" class="function">sodium_crypto_generichash_final()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-generichash-init.html" class="function">sodium_crypto_generichash_init()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-generichash-keygen.html" class="function">sodium_crypto_generichash_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-generichash-update.html" class="function">sodium_crypto_generichash_update()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-generichash.html" class="function">sodium_crypto_generichash()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kdf-derive-from-key.html" class="function">sodium_crypto_kdf_derive_from_key()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kdf-keygen.html" class="function">sodium_crypto_kdf_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kx-client-session-keys.html" class="function">sodium_crypto_kx_client_session_keys()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kx-keypair.html" class="function">sodium_crypto_kx_keypair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kx-publickey.html" class="function">sodium_crypto_kx_publickey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kx-secretkey.html" class="function">sodium_crypto_kx_secretkey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kx-seed-keypair.html" class="function">sodium_crypto_kx_seed_keypair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-kx-server-session-keys.html" class="function">sodium_crypto_kx_server_session_keys()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256-str-verify.html" class="function">sodium_crypto_pwhash_scryptsalsa208sha256_str_verify()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256-str.html" class="function">sodium_crypto_pwhash_scryptsalsa208sha256_str()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256.html" class="function">sodium_crypto_pwhash_scryptsalsa208sha256()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-pwhash-str-verify.html" class="function">sodium_crypto_pwhash_str_verify()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-pwhash-str.html" class="function">sodium_crypto_pwhash_str()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-pwhash.html" class="function">sodium_crypto_pwhash()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-scalarmult-base.html" class="function">sodium_crypto_scalarmult_base()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-scalarmult.html" class="function">sodium_crypto_scalarmult()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-secretbox-keygen.html" class="function">sodium_crypto_secretbox_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-secretbox-open.html" class="function">sodium_crypto_secretbox_open()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-secretbox.html" class="function">sodium_crypto_secretbox()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-shorthash-keygen.html" class="function">sodium_crypto_shorthash_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-shorthash.html" class="function">sodium_crypto_shorthash()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-detached.html" class="function">sodium_crypto_sign_detached()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-ed25519-pk-to-curve25519.html" class="function">sodium_crypto_sign_ed25519_pk_to_curve25519()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-ed25519-sk-to-curve25519.html" class="function">sodium_crypto_sign_ed25519_sk_to_curve25519()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-keypair-from-secretkey-and-publickey.html" class="function">sodium_crypto_sign_keypair_from_secretkey_and_publickey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-keypair.html" class="function">sodium_crypto_sign_keypair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-open.html" class="function">sodium_crypto_sign_open()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-publickey-from-secretkey.html" class="function">sodium_crypto_sign_publickey_from_secretkey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-publickey.html" class="function">sodium_crypto_sign_publickey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-secretkey.html" class="function">sodium_crypto_sign_secretkey()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-seed-keypair.html" class="function">sodium_crypto_sign_seed_keypair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign-verify-detached.html" class="function">sodium_crypto_sign_verify_detached()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-sign.html" class="function">sodium_crypto_sign()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-stream-keygen.html" class="function">sodium_crypto_stream_keygen()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-stream-xor.html" class="function">sodium_crypto_stream_xor()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-crypto-stream.html" class="function">sodium_crypto_stream()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-hex2bin.html" class="function">sodium_hex2bin()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-increment.html" class="function">sodium_increment()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-memcmp.html" class="function">sodium_memcmp()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-memzero.html" class="function">sodium_memzero()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-pad.html" class="function">sodium_pad()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.sodium-unpad.html" class="function">sodium_unpad()</a></span>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.new-functions.zip">
  <h3 class="title"><a href="book.zip.html" class="link">ZIP</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="ziparchive.count.html" class="methodname">ZipArchive::count()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="ziparchive.setencryptionname.html" class="methodname">ZipArchive::setEncryptionName()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="ziparchive.setencryptionindex.html" class="methodname">ZipArchive::setEncryptionIndex()</a></span>
    </span>
   </li>
  </ul>
 </div>
</div></div></div></body></html>